<!DOCTYPE html>
<html xmlns:v-bind="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <title>test</title>
    <link rel="stylesheet" type="text/css" href="css/ui.jqgrid.css">
    <link rel="stylesheet" type="text/css" href="css/ui.jqgrid-bootstrap.css">
    <script src="https://cdn.bootcss.com/jquery/2.0.3/jquery.min.js"></script>
    <script src="js/vue.min.js"></script>
    <script type="text/javascript" src="js/grid.locale-en.js"></script>
    <script type="text/javascript" src="js/jquery.jqGrid.min.js"></script>
    <script type="text/javascript" src="js/bootstrap.min.js"></script>
</head>
<script>
    $(function(){
        var vm=new Vue({
            el:'#index',
            data:{
                demoUrl:'http://localhost:8888/demo.html',
                userInfoUrl:'http://localhost:8888/userInfo.html',
                jqDemo:'http://localhost:8888/jqDemo.html'
            }

        })

        $("#btn").click(function(){
            //alert(1);
            $.ajax({
                type:'get',
                url:'user/getAllInfos',
                success:function(data){
                    console.log(data);
                }
            })
        })

        $("#redis").click(function(){
            //alert(1);
            $.ajax({
                type:'get',
                url:'user/getByPhoneNum',
                success:function(data){
                    console.log(data);
                }
            })
        })

        $("#update").click(function(){
            //alert(1);
            $.ajax({
                type:'post',
                url:'user/updateByPhoneNum',
                success:function(data){
                    console.log(data);
                }
            })
        })
    })


</script>
<body>
<div id="index" >
    <p id="test">测试页面!</p>
    <button type="button" id="btn">test pageHelper</button>
    <button type="button" id="redis">test redis</button>
    <button type="button" id="update">test update</button>
    <a v-bind:href="demoUrl">到demo页面</a>
    <a :href="userInfoUrl">到用户页面</a>
    <a :href="jqDemo">到jqDemo页面</a>
</div>
</body>
</html>